use "competence.dta"

/*Figure 5*/
graph bar inc2, over(gropos) title("A. Incumbent") ytitle("") scheme(s1mono) name(inc3, replace)
graph bar alt2, over(gropos) title("B. Alternative") ytitle("") scheme(s1mono) name(alt3, replace)
graph bar chl2, over(gropos) title("C. Challenger") ytitle("") scheme(s1mono) name(chl3, replace)
graph combine inc3 alt3 chl3, scheme(s1mono) r(1) ycommon xcommon

/*Table 6*/
sureg (inc2 c.dgrowth##period01 i.ccode) (alt2 c.dgrowth##period01 i.ccode) (chl2 c.dgrowth##period01  i.ccode)